import request from '@/utils/request'
export function list(params,type) {
    return request({
        url: '/app/mpt/list',
        method: 'get',
        params: params,
		type:type
    })
}
export function save(data){
    return request({
        url:'/app/mpt/save',
        method:'post',
        data:data
    })
}

export function update(data){
    return request({
        url:'/app/mpt/update',
        method:'put',
        data:data
    })
}
export function del(params) {
    return request({
        url: '/app/mpt/delete',
        method:'delete',
        params:params
    })
}
export function queryById(params) {
    return request({
        url: '/app/mpt/queryById',
        method:'get',
        params:params
    })
}
export function close(params) {
    return request({
        url: '/app/mpt/close',
        method:'put',
        params:params
    })
}
export function open(params) {
    return request({
        url: '/app/mpt/open',
        method:'put',
        params:params
    })
}
